package com.invest.infra.excel.validator.impl;

import com.invest.infra.excel.validator.CellValidator;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;
import java.util.Map;

@Service("blankValidator")
public class BlankValidator implements CellValidator {

	@Override
	public String validate(Map<String, Object> paramMap, String value) {
		if(StringUtils.isBlank(value)){
			return "不能为空";
		}
		return null;
	}

}
